<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $("input[name='name']").focus();
        $("input[class='easyui-validatebox']").click(function () {
            $(this).select()
        })
    })
</script>
<div align="center">
    <form id="admin_shopAdd_addForm" method="post">
        <table class="tableForm">
            <tr>
                <th>编号</th>
                <td> <input class="easyui-validatebox" readonly placeholder="自动生成"/></td>
                <th>商品名称</th>
                <td><input name="name" class="easyui-validatebox" data-options="required:true" /></td>
            </tr>
            <tr>
                <th>商品图片</th>
                <td>
                    <input type="hidden" value="add" id="js-val">
                    <jsp:include page="file.jsp"></jsp:include>
                </td>
                <th>所属商品单位</th>
                <td>
                    <input type="text" class="easyui-combotree" name="deptId" data-options="url:'${pageContext.request.contextPath}/infoController/find_info.action?ids=07,08,09'" id="dept_type_1" style="width: 150px;">
                    <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_1').combotree('clear');" />
                </td>
            </tr>
            <tr>
                <th style="width: 170px;">商品类型/功能</th>
                <td>
                    <input type="text" class="easyui-combotree" data-options="url:'${pageContext.request.contextPath}/shopController/find_type.action',lines:true" id="dept_type_2" name="typeId" style="width: 150px;">
                    <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_2').combotree('clear');" />
                </td>
                <th>商品年份</th>
                <td><input name="year" class="easyui-validatebox" value="" /></td>
            </tr>
            <tr>
                <th>商品规格</th>
                <td><input name="comment" class="easyui-validatebox"   value="" /></td>
                <th>排序</th>
                <td><input name="order" class="easyui-validatebox" value="1000" /></td>
            </tr>
            <tr>
                <th>非会员价</th>
                <td><input name="price" class="easyui-validatebox"   value="0.00" /></td>
            </tr>
            <tr>
                <th>基本卡(价格)</th>
                <td><input name="jdPrice" class="easyui-validatebox"    value="0.00"  /></td>
                <th>基本卡(描述)</th>
                <td><input name="jbDescribe" class="easyui-validatebox"  value="" /></td>
            </tr>
            <tr>
                <th>维护卡(价格)</th>
                <td><input name="whPrice" class="easyui-validatebox"    value="0.00"  /></td>
                <th>维护卡(描述)</th>
                <td><input name="whDescribe" class="easyui-validatebox"  value="" /></td>
            </tr>
            <tr>
                <th>促进卡(价格)</th>
                <td><input name="cjPrice" class="easyui-validatebox" value="0.00" /></td>
                <th>促进卡(描述)</th>
                <td><input name="cjDescribe" class="easyui-validatebox"   value=""  /></td>
            </tr>

        </table>
    </form>
</div>